<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户管理系统</title>
    <style>
        /* 全局样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }
        
        body {
            background-color: #f5f5f5;
            color: #333;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        /* 头部样式 */
        header {
            background-color: #2c3e50;
            color: white;
            padding: 20px 0;
            margin-bottom: 30px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            font-size: 24px;
            font-weight: bold;
        }
        
        .user-info {
            display: flex;
            align-items: center;
        }
        
        .user-info img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin-right: 10px;
        }
        
        /* 主要内容区 */
        .main-content {
            display: flex;
        }
        
        /* 侧边栏 */
        .sidebar {
            width: 250px;
            background-color: white;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            padding: 20px;
            margin-right: 20px;
        }
        
        .sidebar h3 {
            margin-bottom: 20px;
            color: #2c3e50;
            border-bottom: 1px solid #eee;
            padding-bottom: 10px;
        }
        
        .nav-menu {
            list-style: none;
        }
        
        .nav-menu li {
            margin-bottom: 10px;
        }
        
        .nav-menu a {
            display: block;
            padding: 10px;
            color: #555;
            text-decoration: none;
            border-radius: 4px;
            transition: all 0.3s ease;
        }
        
        .nav-menu a:hover, .nav-menu a.active {
            background-color: #3498db;
            color: white;
        }
        
        /* 内容区 */
        .content {
            flex: 1;
            background-color: white;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            padding: 20px;
        }
        
        .content-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        
        .content-header h2 {
            color: #2c3e50;
        }
        
        .btn {
            padding: 8px 15px;
            background-color: #3498db;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            text-decoration: none;
            font-size: 14px;
            transition: background-color 0.3s;
        }
        
        .btn:hover {
            background-color: #2980b9;
        }
        
        .btn-danger {
            background-color: #e74c3c;
        }
        
        .btn-danger:hover {
            background-color: #c0392b;
        }
        
        /* 表格样式 */
        .user-table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .user-table th, .user-table td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #eee;
        }
        
        .user-table th {
            background-color: #f8f9fa;
            color: #2c3e50;
            font-weight: bold;
        }
        
        .user-table tr:hover {
            background-color: #f5f5f5;
        }
        
        .avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .action-buttons {
            display: flex;
            gap: 5px;
        }
        
        .action-btn {
            padding: 5px 10px;
            font-size: 12px;
            border-radius: 3px;
        }
        
        /* 搜索和过滤 */
        .search-filter {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
        }
        
        .search-box {
            flex: 1;
            margin-right: 10px;
        }
        
        .search-box input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
        
        .filter-dropdown {
            width: 200px;
        }
        
        .filter-dropdown select {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            background-color: white;
        }
        
        /* 分页 */
        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 20px;
        }
        
        .pagination a {
            padding: 8px 16px;
            margin: 0 5px;
            border: 1px solid #ddd;
            color: #3498db;
            text-decoration: none;
            border-radius: 4px;
        }
        
        .pagination a.active {
            background-color: #3498db;
            color: white;
            border-color: #3498db;
        }
        
        .pagination a:hover:not(.active) {
            background-color: #f1f1f1;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .main-content {
                flex-direction: column;
            }
            
            .sidebar {
                width: 100%;
                margin-right: 0;
                margin-bottom: 20px;
            }
            
            .search-filter {
                flex-direction: column;
            }
            
            .search-box {
                margin-right: 0;
                margin-bottom: 10px;
            }
        }
    </style>
</head>
<body>
    <header>
        <div class="container header-content">
            <div class="logo">用户管理系统</div>
            <div class="user-info">
                <img src="https://via.placeholder.com/40" alt="用户头像">
                <span>管理员</span>
            </div>
        </div>
    </header>
    
    <div class="container">
        <div class="main-content">
            <aside class="sidebar">
                <h3>导航菜单</h3>
                <ul class="nav-menu">
                    <li><a href="#" class="active">用户管理</a></li>
                    <li><a href="#">角色管理</a></li>
                    <li><a href="#">权限管理</a></li>
                    <li><a href="#">系统设置</a></li>
                    <li><a href="#">日志记录</a></li>
                </ul>
            </aside>
            
            <main class="content">
                <div class="content-header">
                    <h2>用户列表</h2>
                    <a href="#" class="btn">添加用户</a>
                </div>
                
                <div class="search-filter">
                    <div class="search-box">
                        <input type="text" placeholder="搜索用户...">
                    </div>
                    <div class="filter-dropdown">
                        <select>
                            <option value="">所有状态</option>
                            <option value="active">活跃</option>
                            <option value="inactive">禁用</option>
                        </select>
                    </div>
                </div>
                
                <table class="user-table">
                    <thead>
                        <tr>
                            <th>用户名</th>
                            <th>邮箱</th>
                            <th>角色</th>
                            <th>状态</th>
                            <th>注册时间</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            
                            <td>张三</td>
                            <td>zhangsan@example.com</td>
                            <td>管理员</td>
                            <td><span style="color: green;">活跃</span></td>
                            <td>2023-05-10</td>
                            <td class="action-buttons">
                                <a href="#" class="btn action-btn">编辑</a>
                                <a href="#" class="btn btn-danger action-btn">禁用</a>
                            </td>
                        </tr>
                        <tr>
                            
                            <td>李四</td>
                            <td>lisi@example.com</td>
                            <td>编辑</td>
                            <td><span style="color: green;">活跃</span></td>
                            <td>2023-06-15</td>
                            <td class="action-buttons">
                                <a href="#" class="btn action-btn">编辑</a>
                                <a href="#" class="btn btn-danger action-btn">禁用</a>
                            </td>
                        </tr>
                        <tr>
                           
                            <td>王五</td>
                            <td>wangwu@example.com</td>
                            <td>用户</td>
                            <td><span style="color: red;">禁用</span></td>
                            <td>2023-07-20</td>
                            <td class="action-buttons">
                                <a href="#" class="btn action-btn">编辑</a>
                                <a href="#" class="btn action-btn">启用</a>
                            </td>
                        </tr>
                        <tr>
                            
                            <td>赵六</td>
                            <td>zhaoliu@example.com</td>
                            <td>用户</td>
                            <td><span style="color: green;">活跃</span></td>
                            <td>2023-08-05</td>
                            <td class="action-buttons">
                                <a href="#" class="btn action-btn">编辑</a>
                                <a href="#" class="btn btn-danger action-btn">禁用</a>
                            </td>
                        </tr>
                        <tr>
                            
                            <td>钱七</td>
                            <td>qianqi@example.com</td>
                            <td>编辑</td>
                            <td><span style="color: green;">活跃</span></td>
                            <td>2023-09-12</td>
                            <td class="action-buttons">
                                <a href="#" class="btn action-btn">编辑</a>
                                <a href="#" class="btn btn-danger action-btn">禁用</a>
                            </td>
                        </tr>
                    </tbody>
                </table>
                
                <div class="pagination">
                    <a href="#">&laquo;</a>
                    <a href="#" class="active">1</a>
                    <a href="#">2</a>
                    <a href="#">3</a>
                    <a href="#">4</a>
                    <a href="#">5</a>
                    <a href="#">&raquo;</a>
                </div>
            </main>
        </div>
    </div>
</body>
</html>